﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ForumsBrowser.DataObjects
{
    [XmlRoot("root")]
    public class ForumData
    {
        [XmlElement("forum")]
        public Forum Forum { get; set; }

        [XmlArray("threads")]
        [XmlArrayItem("thread")]
        public GuidAccessibleList<Thread> Threads { get; set; }

        [XmlArray("messages")]
        [XmlArrayItem("message")]
        public GuidAccessibleList<Message> Messages { get; set; }

        [XmlArray("users")]
        [XmlArrayItem("user")]
        public GuidAccessibleList<User> Users { get; set; }
    }
}
